#!/bin/bash

# 创建时间戳文件夹
timestamp=$(date +"%Y%m%d_%H%M")
mkdir -p "logs/${timestamp}"

# 运行四个grid文件并将输出重定向到对应的日志文件
python bishe_benchmark_use_grid1.py > "logs/${timestamp}/grid1.log" 2>&1 &
python bishe_benchmark_use_grid2.py > "logs/${timestamp}/grid2.log" 2>&1 &
python bishe_benchmark_use_grid3.py > "logs/${timestamp}/grid3.log" 2>&1 &
python bishe_benchmark_use_grid4.py > "logs/${timestamp}/grid4.log" 2>&1 &

echo "所有grid文件运行完成，日志保存在 logs/${timestamp} 目录中"
